Welcome![Sign In][Sign Up]
Location:
Search - brew image

Search list

[BREWBrew1图像处理

Description: 写了一些Brew中基础的图像操作,初学者可以参考!-Brew wrote some of the basic image manipulation, beginners can reference!
Platform: | Size: 35086 | Author: 你好亚 | Hits:

[BREWimage

Description: brew平台图像处理源代码-Image processing source code of brew platform
Platform: | Size: 128509 | Author: 彭彭 | Hits:

[BREWbrew_image

Description: 一个在brew中使用image显示的例子, 很适合新手学习
Platform: | Size: 198499 | Author: Nick | Hits:

[GUI Developbrew window manager

Description:

 

Objective
This topic describes how to create a windowed application that will share the display with other applications.
Brew® MP windowed applications need to be written differently than traditional Brew MP applications. Traditional Brew MP applications, when running in the foreground, occupy full screen space and can modify the display at any time. In the windowing framework, multiple applications share the display at the same time and are not allowed to modify the display arbitrarily. A windowed application also needs to create one or more widgets to be used to create the windows.
A windowed application needs to:
·                  Create and initialize one or more widgets to be passed to IWindowMgr_CreateWindow().
The application can implement its own IWidget, or it can make use of an existing IWidget.
·                  Handle the EVT_APP_START_WINDOW event (and create a window).
·                  Implement handlers for visibility changes, focus changes, and extent changes. The implementation of these handlers is dependent on the details of the application.
·                  Draw in two stages:
·                                  Tell the container that drawing is necessary (ICONTAINER_Invalidate()).
·                                  Draw only when told to draw by the container (IWIDGET_Draw()).
Note: A windowed application should not call any functions that modify IDisplay directly. This includes explicit IDisplay function calls or implicit updates, such as calls to IIMAGE_Draw() or ICONTROL_Redraw(). Drawing should happen only on demand, for example, when IWIDGET_Draw() is called for the widget used to create the window. Existing Widget based applications follow these guidelines and, with minor modifications, can be ported to the windowing framework.
Event handling
A windowed application must respond to these events:
EVT_APP_START_WINDOW and EVT_APP_START
A window-based application receives EVT_APP_START_WINDOW first. If the application returns TRUE for this event, the application does not receive EVT_APP_START. If an application needs to support both the environments (window based and non-window based), it should handle both events.
When the application receives EVT_APP_START_WINDOW, it should create one or more windows.
If creation of IWindowMgr0 fails while handling EVT_APP_START_WINDOW, the application should assume that the platform does not support window-based applications. In this case, the application should return FALSE and continue the application logic in the code for EVT_APP_START.
EVT_APP_SUSPEND and EVT_APP_RESUME
After an application returns TRUE for EVT_APP_START_WINDOW, it will not receive EVT_APP_SUSPEND and EVT_APP_RESUME as non-windowed Brew MP applications do. Instead, the application must check for window status events that are sent to the widget through EVT_WDG_SETPROPERTY events. For EVT_WDG_SETPROPERTY events, wParam indicates which property was set, and dwParam specifies the value of the property. When the AEEWindowMgrExt_PROPEX_STATE property has a value of AEEWindowMgrExt_STATE_VISIBLE, the window is visible.
EVT_WDG_WINDOWSTATUS
The EVT_WDG_WINDOWSTATUS event is sent to a widget to notify it about various window related status messages. AEEWindowStatus.h contains information on the meaning of various status messages.
Sample code location

ZIP filename
Location
Run app
hellowindowapp
Brew MP Library
·                       Download and extract the ZIP file.
·                       Compile the app.
·                       Run it on the Brew MP Simulator.

Example of a windowed application
In the hellowindowapp sample, HelloWindowApp_HandleEvent handles the EVT_APP_START_WINDOW event and creates soft key and pop-up windows:
   case EVT_APP_START_WINDOW:   
      DBGPRINTF("EVT_APP_START_WINDOW");
 
      // Create the softkey and popup windows
      HelloWindowApp_CreateSoftkey(pMe);
      HelloWindowApp_CreateOrActivatePopup(pMe);
 
      // Handling this event tells Brew that we are a windowing
      // application.
      return TRUE;  
HelloWindowApp_CreateSoftkey() creates the soft key widget, sets the color text of the widget, then calls HelloWindowApp_CreateWindow() to create the window.
   WidgetWindow *pWindow = &pMe->softkeyWindow;
  
   if (pWindow->piWindowWidget != NULL) return;
   pWindow->pszDbgName = "Softkey";
   pWindow->pMe = pMe;
  
   (void) ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_SoftkeyWidget,
            (void **) &pWindow->piWindowWidget);
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WidgetExtent extent = {0, HWA_SOFTKEY_HEIGHT};
      IWidget_SetExtent(pWindow->piWindowWidget, &extent);
   }
  
   (void) IWidget_SetBGColor(pWindow->piWindowWidget, MAKE_RGBA(200,200,200,255));
  
   // Now set the softkeys text
   {
      IWidget *piTextWidget = NULL;
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY1, &piTextWidget);
     
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Hover", TRUE);
      }
      RELEASEIF(piTextWidget);
 
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY2, &piTextWidget);
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Close", TRUE);
      }
      RELEASEIF(piTextWidget);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Softkey);  
HelloWindowApp_CreateWindow() creates the soft key window, as follows:
   int result;
   uint32 winId;
   AEEWindowProp propList[1];
  
   // Set custom window handler
   HANDLERDESC_Init(&pWindow->hdHandler, HelloWindowApp_WindowHandler, pWindow, NULL);
   IWIDGET_SetHandler(pWindow->piWindowWidget, &pWindow->hdHandler);
        
   propList[0].id = AEEWindowMgrExtProp_CLASS;
   propList[0].pbyLen = sizeof(winClass);
   propList[0].pby = (void *) &winClass;
     
   result = IWindowMgr_CreateWindow(pMe->piWindowMgr, (IQI*) (void *) pWindow->piWindowWidget,
      propList, ARR_SIZE(propList), &winId);
 
   if (result != SUCCESS) {
      DBGPRINTF("Window creation failed for %s: %d", pWindow->pszDbgName, result);
      HelloWindowApp_DestroyWindow(pWindow);
   } else {
      DBGPRINTF("Window %s created: id=%d", pWindow->pszDbgName, winId);
   }
HelloWindowApp_CreateOrActivatePopup() creates the widget for the pop-up window, then calls HelloWindowApp_CreateWindow() to create the pop-up window.
   pWindow->piWindowWidget = HelloWindowApp_CreateAndInitImageWidget(
                                pMe,
                                "popups.main" // Image as defined in appinfo.ini
                             );
 
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WExtent extent = {HWA_POPUP_WIDTH, HWA_POPUP_HEIGHT};
      IWIDGET_SetExtent(pWindow->piWindowWidget, &extent);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Popup);
Related information
·                  See Brew MP Widgets Technology Guide: Creating a Widgets application
·                  See Brew MP API Reference

Base version:
Brew MP 1.0
Tested version:
Brew MP 1.0
Phone tested:
No

 

Platform: | Size: 439828 | Author: bluecrest | Hits:

[BREWimage

Description: brew平台图像处理源代码-Image processing source code of brew platform
Platform: | Size: 128000 | Author: 彭彭 | Hits:

[BREWIHtmlViewer

Description: 一个关于BREW的应用程序,介绍了IHtmlView接口的使用,非常适合初学者。-A application developed by brew.It introduce the use of the interface of IHtmlView, and fit to the newers.
Platform: | Size: 60416 | Author: 李华宁 | Hits:

[BREWBrew1图像处理

Description: 写了一些Brew中基础的图像操作,初学者可以参考!-Brew wrote some of the basic image manipulation, beginners can reference!
Platform: | Size: 34816 | Author: Fox | Hits:

[Special Effectsbrew

Description: 使用VC++ 对8bit 16bit 24bit 的图像进行反转 放大缩小等图像处理-Use VC++ Of 8bit 16bit 24bit images inversion Zoom image processing, etc.
Platform: | Size: 163840 | Author: yuqilin | Hits:

[BREWbrew_image

Description: 一个在brew中使用image显示的例子, 很适合新手学习-A brew using image shows an example, it is suitable for novice learning
Platform: | Size: 490496 | Author: Nick | Hits:

[BREWkeymove

Description: 这是一个关于图像的按键的BREW的程序,很好哦。-This is a button on the image of the BREW procedures, oh well.
Platform: | Size: 333824 | Author: liu zi ming | Hits:

[Othermediaplayer

Description: MediaPlayer程序可以播放声音、视频文件,还可以显示静态图象文件,如果有CMX DLLs的话,该程序也可以记录或回放高通公司的QCP格式音频文件。它最多可以保存32个多媒体文件。Mediaplayer有常用的功能,例如播放、快速播放、停止和暂停等,它支持许多多媒体格式,包括QCP,MPEG Audio Layer3(MP3),Musical Instrument Digital Interface(MIDI),BREW Compressed Image(BCI),Bitmap(BMP),和包含音视频的Packet Mode Data(PMD)。 这个程序的运行目标设备是Sharp Z-800,在Simulator上,我们选择Sharp Z-800设备图片。 -MediaPlayer can play a sound, video files, can also display a static image files, if there CMX DLLs, then the program can also record or playback QUALCOMM
Platform: | Size: 49152 | Author: mayang | Hits:

[BREWmainproject1

Description: brew c代码实现图片翻转,拉伸,旋转.-brew c code picture flip, stretch, rotate.
Platform: | Size: 347136 | Author: fatherhui | Hits:

[Windows DevelopGamesample

Description: 这是一个简单的brew游戏,不过包含了很多用法,比如菜单,图像,声音。-It is a game about brew ,it is sample ,but include the way to use menu ,image and sound .
Platform: | Size: 32768 | Author: 吕江 | Hits:

[BREWmediaplayer

Description: 多媒体播放器是一个多媒体应用,能够播放声音、视频剪辑和图形图像。 该应用程序还可以录制和播放高通PureVoice音频剪辑。 该播放器包括标准的MediaPlayer控制,如播放,快进,快退,停止,暂停和录制。 多媒体播放器支持各种各样的音频,视频和图形格式, 包括MPEG-3,MIDI,BREW的压缩图像(BCI),位图(BMP)和分组模式数据(PMD)。 -MediaPlayer is a multimedia application capable of playing sound and video clips, and displaying still graphic images. The application can also record and play back QUALCOMM PureVoice (QCP® ) audio clips if you have the appropriate CMX® DLLs loaded. Up to 32 multimedia files can be stored for use with this application. MediaPlayer includes standard controls, such as play, fast forward, rewind, stop, pause, and record. MediaPlayer supports a wide variety of audio, video, and still graphic formats including QCP, MPEG Audio Layer 3 (MP3), Musical Instrument Digital Interface (MIDI), BREW Compressed Image (BCI), Bitmap (BMP), and Packet Mode Data (PMD), which contains both audio and video.
Platform: | Size: 2039808 | Author: zb | Hits:

[BREWFW_-IImage-prototype-for-BMP

Description: image prototyping snippets of brew
Platform: | Size: 1238016 | Author: sarapkarthik | Hits:

[BREWimage_brew

Description: brew中Image接口的例子,brew中Image接口的例子-brew in the Image interface example,brew in the Image interface example
Platform: | Size: 118784 | Author: caooyff | Hits:

[BREWDevelopment-of-BREW

Description: BREW学习的资料,第一章BREW程序,第二章 文本画面 第三章 按键 第四章 计时器 第五章 资源编辑 第六章 菜单 第七章 对话框 第八章 控件 第九章 图形与图像 第十章 网络通信-BREW study data, BREW application Chapter II Chapter III Chapter text screen timer button Chapter IV Chapter V Chapter VI Resource Editor dialog menu Chapter VII Chapter VIII Chapter IX graphics and image control Chapter Network Communications
Platform: | Size: 330752 | Author: 梅武钊 | Hits:

CodeBus www.codebus.net